package mvp.com.bbc.rcjavaretrofitdaggermvp.mvp.activity;

import mvp.com.bbc.rcjavaretrofitdaggermvp.app.utils.RotatePopUpWindow;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.utils.Util;
import mvp.com.bbc.rcjavaretrofitdaggermvp.baseAF.BaseViewPagerActivity;
import mvp.com.bbc.viewpagerlayoutmanager.RotateLayoutManager;

/**
 * Created by ${cbf} on 2017/11/30.
 * 旋转式viewPager
 */

public class RotateLayoutActivity extends BaseViewPagerActivity<RotateLayoutManager, RotatePopUpWindow> {
    @Override
    protected RotateLayoutManager createLayoutManager() {
        return new RotateLayoutManager(Util.Dp2px(this, 10), 0, 2);
    }

    @Override
    protected RotatePopUpWindow createSettingPopUpWindow() {
        return new RotatePopUpWindow(this, getViewPagerLayoutManager(), getRecyclerView());
    }
}
